package com.chang.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chang.common.utils.PageUtils;
import com.chang.product.entity.CategoryEntity;
import com.chang.product.vo.CatelogTwoVo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    // 获取全部数据并以树形结构返回
    List<CategoryEntity> listWithTree();

    void removeMenuByIdS(List<Long> list);

    Long[] findCateLogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevelOneCategorys();

    Map<String, List<CatelogTwoVo>> getCatelogJsonFromRedis() throws InterruptedException;
}

